package com.starrk.myblog.foreground.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Starrk
 * @since 2018-03-25
 */
@TableName("tb_blogger")
public class TbBlogger extends Model<TbBlogger> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "blogger_id",type = IdType.ID_WORKER)
    private Long bloggerId;
    private String name;
    private String username;
    private String password;
    private String introduce;
    private String icon;
    private String region;
    private String career;
    private String grade;
    private Integer score;
    private String salt;
    @TableField("create_time")
    private Date createTime;
    @TableField("update_time")
    private Date updateTime;


    public Long getBloggerId() {
        return bloggerId;
    }

    public void setBloggerId(Long bloggerId) {
        this.bloggerId = bloggerId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getCareer() {
        return career;
    }

    public void setCareer(String career) {
        this.career = career;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.bloggerId;
    }

    @Override
    public String toString() {
        return "TbBlogger{" +
        ", bloggerId=" + bloggerId +
        ", name=" + name +
        ", username=" + username +
        ", password=" + password +
        ", introduce=" + introduce +
        ", icon=" + icon +
        ", region=" + region +
        ", career=" + career +
        ", grade=" + grade +
        ", score=" + score +
        ", salt=" + salt +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
